package com.arsn.myf.business.service;

import com.arsn.myf.business.entity.Leave;
import com.arsn.myf.business.vo.LeaveVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 请假申请接口层
 * @author zhongrj
 * @since 2022-11-04
 */
public interface LeaveService extends IService<Leave> {

    /**
     * 启动任务（流程）
     * @param leave
     * @return
     */
    boolean startLeaveTask(LeaveVO leave);

    /**
     * 查询请假的分页数据
     * @param page
     * @param leave
     * @return
     */
    IPage<LeaveVO> selectLeavePage(Page<LeaveVO> page, LeaveVO leave);


    /**
     * 查询详情
     * @param leave
     * @return
     */
    LeaveVO getLeaveDetail(LeaveVO leave);
}
